import request from "./request";
const Req = new request()
export function list(page=0,limit=10){
    return Req.get({
        url:'/bannerList',
        data:{
            page,
            limit
        }
    })
}
export function remove(_id){
    return Req.post({
        url:'/bannerDelete',
        data:{
            _id
        }
    })
}
export function add({title,url,path,sort,status,desciption}){
    return Req.post({
        url:"/bannerAdd",
        data:{
            title,url,path,sort,status,desciption
        }
    })
}
export function update({_id,title,url,path,sort,status,desciption}){
    return Req.post({
        url:"/bannerUpdate",
        data:{
            _id,title,url,path,sort,status,desciption
        }
    })
}
